import sys
sys.path.append("/home/syn/workspace/eclipse/PyBookler/src")

import gtk
from ui.treemodels import AuthorListStore
from data.models import Author

class GenericTreeModelExample:
    def delete_event(self, widget, event, data=None):
        gtk.main_quit()
        return False
 
    def __init__(self):
        # Create a new window
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.set_size_request(300, 200)
 
        self.label = gtk.Label()
        self.label.set_text("Testo di prova")
        
        self.entry = gtk.Entry()
        self.entry.set_sensitive(False)
       
        self.hbox = gtk.HBox()
        self.hbox.pack_start(self.label, True)
        self.hbox.pack_end(self.entry, True)
        self.window.add(self.hbox)
        
        self.window.connect("delete_event", self.delete_event)
        self.window.set_title("Ciao")
        self.window.show_all()

    def open_file(self, treeview, path, column):
        print "fuck"
 
def main():
    gtk.main()

if __name__ == "__main__":
    gtmexample = GenericTreeModelExample()
    main()
